home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 11 Exotic Applications / SC072.ZIP / SC_ARC.ZIP / LYNX.DOC next >
Encoding:
Text File  |  1996-05-20  |  2.5 KB  |  49 lines

  1.  
  2.                                 The Lynx format
  3.  
  4.   WARNING: The description below is a mere extrapolation  from  the  files  and
  5. program sources I've encountered. This format description does  not  take  Lynx
  6. archives containing relative files into account since I've never seen one.
  7.  
  8.   Lynx is used to put multiple files into a single archive. The archives  start
  9. with a small BASIC program that displays a message on the  screen  saying  that
  10. you should use a Lynx program to extract its contents. Then comes  a  directory
  11. of the files in the archive which is followed  by  the  files  themselves,  all
  12. aligned to sector boundary. Lynx archives are in no way compressed,  the  files
  13. are simply linked (hence the name) after each other in it.
  14.   All entries, strings and other parts of the directory are  separated  with  a
  15. carriage return. All numbers are stored in a string form which starts and  ends
  16. with a space.
  17.  
  18.   A typical BASIC program for Lynx archives looks like this:
  19.  
  20.   10 POKE53280,0:POKE53281,0:POKE646,PEEK(162):PRINT"<CLS><DOWN><DOWN><DOWN>
  21.   <DOWN><DOWN><DOWN><DOWN><DOWN>":PRINT"     USE LYNX TO DISSOLVE THIS FILE":
  22.   GOTO10
  23.  
  24.   The BASIC program ends with the usual three zero bytes. They are followed  by
  25. the number of blocks used by the directory, then a copyright  string  with  the
  26. Lynx program name, version number and the name of its author, and  finally  the
  27. number of files in the archive, e.g.
  28.  
  29.   <CR> 3  *LYNX XVII   WILL CORLEY<CR> 18 <CR>
  30.  
  31.   means that the directory uses 3 blocks, holds 18 entries and the archive  was
  32. created by Lynx version 17 which is copyrighted by Will Corley.
  33.  
  34.   Entries in the directory are made up by the filename, the length of the  file
  35. in blocks, the filetype, and the number of bytes + 1 in the  last  block,  e.g.
  36. (underscores represent Shift-Spaces that fill up the name to 16 characters)
  37.  
  38.   HASHMON_________<CR> 17 <CR>P<CR> 35 <CR>
  39.  
  40.   means that the current file is a program,  it's  called  "hashmon",  it's  17
  41. blocks long and the last block contains 34 bytes (the remaining  part  of  that
  42. block is probably filled with garbage).
  43.  
  44.   The first file starts at the beginning of the block  that  follows  the  last
  45. block of the directory. All files are similarly aligned so that they  start  at
  46. the beginning of a block. This method has  the  advantage  that  the  extractor
  47. program running on a real Commodore machine doesn't  have  to  move  data  only
  48. split the archive into the original files.
  49.